﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace coffe
{
    internal class Program
    {
        static void Main(string[] args)
        {
            // 创建一个浓缩咖啡并加配料
            Beverage beverage = new Espresso();
            beverage = new Mocha(beverage);
            beverage = new Milk(beverage);

            Console.WriteLine("饮料：{0} ￥{1}", beverage.GetDescription(), beverage.GetCost());
            Console.ReadKey();
        }
    }
}
